package com.hqyj.controller;


import com.hqyj.pojo.Employee;
import com.hqyj.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.HashMap;

@Controller
@RequestMapping("/login")
public class loginController {
    @Autowired
    LoginService loginService;

    @RequestMapping("/employeeLogin")
    @ResponseBody
    public HashMap<String, Object> select(Employee employee, HttpServletRequest request) {
        return loginService.select(employee,request);
    }


    //系统首页跳转
    @RequestMapping("/index")
    public String index(){
        return "index";
    }
}
